<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 *
 * @copyright (c) 2013
 * @author Babak Taraghi 'babak.taraghi@gmail.com'
 * @license Apache License 2.0
 * @version 1.0
 * @desc A map model for tag names
 */
class Tag_Model extends CI_Model {

	
	
	
	private $map = array();
	
	
	
	
	public function init(){
		
		$this->map["register"] = "register";
		$this->map["login"] = "login";
		
		$this->map["search_dishes"] = "dishes_list";
		$this->map["search_dishes_near"] = "gallery";
		$this->map["search_dishes_specific"] = "dish";
		
		$this->map["search_restaurant"] = "restaurant_list";
		$this->map["search_restaurant_detail"] = "restaurant_detail";
		$this->map["search_restaurant_name"] = "restaurant_name";
		
		$this->map["post"] = "post";
	}

	
	
	
	public function getTag($index){
		
		return $this->map[$index];
	}
}